mod func;
// struct 为关键字
mod r#struct;
mod methods;
mod methods2;
mod methods3;

use std::fs::File;
use std::fs::OpenOptions;
use std::io::prelude::*;
use std::io::BufReader;
use std::{thread, time};
use std::time::Duration;
use rand::Rng;
use whosly::duration::DurationX;

use crate::methods::methodWithSyn;
use crate::func::funcWithSyn;
use crate::methods2::methodWithSyn2;
use crate::methods3::methodWithSyn3;
use crate::r#struct::structWithSyn;

fn main() {
    let now = DurationX::new();
    funcWithSyn();
    let duration = now.release();
    // println!("耗时:{:#?}.", duration);
    println!("耗时:{}.", duration);

    let now = DurationX::new();
    structWithSyn();
    let duration = now.release();
    // println!("耗时:{:#?}.", duration);
    println!("耗时:{}.", duration);

    methodWithSyn();
    methodWithSyn2();
    methodWithSyn3();

}
